const SkeRouterName = [
    'demo1',
    'demo2',
]
const skeletonRouter = SkeRouterName.map(item => { //配置首页加载的路由
    let formItem = item.indexOf('?') >= 0 ? item.split('?')[0] : item;
    return {
        path: new RegExp(`^\/${formItem}$`),
        skeletonId: formItem
    }
})
console.log()
module.exports = {
    skeletonRouter
}

